import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {TeamInfoComponent} from "./team-info/team-info.component";
import {TeamEditComponent} from "./team-edit/team-edit.component";
import {TeamUserComponent} from "./team-user/team-user.component";

const routes: Routes = [
  {
    path: "", component: TeamInfoComponent, data: {
      keep: true
    }
  },
  {
    path: "users", component: TeamUserComponent, data: {
      keep: true
    }
  },
  {path: "edit", component: TeamEditComponent}
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class TeamRoutingModule {
}
